package cn.waka.sys.admin.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import cn.waka.sys.admin.object.Role;

@Mapper
public interface IRoleDao {
    List<Role> findList(@Param("map") Map<String, Object> param, @Param("start") int start, @Param("size") int size);

    int findCount(@Param("map") Map<String, Object> param);

    Role findById(int id);

    List<Role> findAll();

    int insert(final Role r);

    int updateRole(Role r);

    List<String> findNodeByRoleId(int authId);

    int updateStatus(@Param("id") int id, @Param("status") String status);

    int del(int id);
}
